<?php
require_once 'dbClasses'.DIRECTORY_SEPARATOR.'config.php';
require_once 'dbClasses'.DIRECTORY_SEPARATOR.'dbConn.php';
$db = new dbConn();

echo $key  = $_POST['key'];
echo "<br />";
echo $data = ($_POST['data']);
echo "<br />";
echo $date = $_POST['date'];
echo "<br />";
echo $page = $_POST['page'];
echo "<br />";

echo $md5key = md5("~!@#$%^".$date.$page."+_))(*&");
echo "<br />";

if ($md5key==$key) {
	$data = $data['taobaoke_report_get_response']['taobaoke_report']['taobaoke_report_members']['taobaoke_report_member'];
	foreach ($data as $key=>$item){
		var_dump($item);echo "<br /><br />";
		if ($item['outer_code']) {
			//$db->sql="INSERT INTO `orderdata2`(`trade_id`,`commission_rate`,`commission`,`outer_code`,`create_time`,`pay_time`,`pay_price`,`num_iid`,`data_create_time`) VALUES({$item['trade_id']},{$item['commission_rate']},{$item['commission']},'{$item['outer_code']}','{$item['create_time']}','{$item['pay_time']}',{$item['pay_price']},'{$item['num_iid']}',now())";
			//$db->doExecute();
		}
	}
}